<?php

namespace catchAdmin\pc\tables\forms;

use catcher\library\form\Form;

class SysLabel extends Form
{
    public function fields(): array
    {
        return [
            Form::input('label_name', '名称')->required()->placeholder('名称'),
            Form::select('company_type', '类型')->setOptions(tableSelectArray((new \catchAdmin\model\SysLabel())->getCompanyTypeNameList()))->valueKey('company_type'),
        ];
    }

}
